package com.lightjet.macross.base.awf.config;

import java.awt.*;
import java.util.HashMap;

/**
 * @author : lijia
 * @version : 1.0 2019-02-25 14:53
 * description : AWF常量定义
 */
public final class AWFConstants {
    private AWFConstants(){}
    public static final String ORIGINATOR_INNER_VARIABLE = "_originator";
    public static final String FORMID_INNER_VARIABLE = "_formid";
    public static final String FLAG_VARIABLE = "flag";
    public static final String SERVICENODE_ERROR_VARIABLE = "_errmsg";
    public static final String DEFAULT_DENYFLAG = "f";
    public static final String DEFAULT_APPROVEFLAG = "t";
    public static final String DENY_MULTISIGN_VARIABLE = "deny";
    public static final String DEFAULT_PROCESS_TITLE_FORMATE = "用户【{0}】于【{1}】发起的流程【{2}】";
    public static final String FORMDATA_COLLECTIONNAME = "formdata";
    public static final String PROCESSFIX_ADMIN_ID = "awf_fix_admin";
    public static final String PREV_SERVICE_NODENAME = "awf_prevsvrnode";
    public static final HashMap<String,String> AUTH_TOKEN = new HashMap<String,String>(){
        {put("uid","0000");}
        {put("pwd","802sastcasc!");}
        {put("cid","awfp");}
        {put("cs","802sastcasc!");}
    };
    public static final HashMap<String,String> AUTH_CLIENT_TOKEN = new HashMap<String,String>(){
        {put("cid","awfp");}
        {put("cs","802sastcasc!");}
    };

    /** 动态流程图颜色定义 **/
    public static final Color COLOR_NORMAL = new Color(255, 0, 0);
    public static final Color COLOR_CURRENT = new Color(0, 205, 0);

    /** 定义生成流程图时的边距(像素) **/
    public static final int PROCESS_PADDING = 20;

    public static final String DEFAULT_AUTHTOKEN_FLAG = "token";
}
